home *** CD-ROM | disk | FTP | other *** search
- Path: grace35.demon.co.uk!Neil
- From: "Neil D. Bentley" <Neil@grace35.demon.co.uk>
- Newsgroups: comp.lang.modula2
- Subject: Re: Other Modula-2 Problems
- Date: Tue, 27 Feb 1996 22:39:46 +0000
- Organization: The Bentley Household
- Distribution: world
- Message-ID: <Ay8xHBAyg4MxEweC@grace35.demon.co.uk>
- References: <313171a2.15277270@news-stand.acs.ohio-state.edu>
- NNTP-Posting-Host: grace35.demon.co.uk
- X-NNTP-Posting-Host: grace35.demon.co.uk
- MIME-Version: 1.0
- X-Newsreader: Turnpike Version 1.10 <SaSOHCDkGMBgDJPNhYMR4i4FdU>
-
- In article <313171a2.15277270@news-stand.acs.ohio-state.edu>, "M.
- Klepcyk" <mjk+@osu.edu> writes
- >Hi,
- >
- >I have some other questions also. I have to make a program that uses
- >infinite series to approximate the value of SIN (a). The line that my
- >teacher gave me for this is: "sin(a)=a-a3/3!+a5/5!-a7/7!+a9/9!...."
- >What does this translate to in the way of a formula? I need to know
- >this so I can write a procedure that will use the variable that will
- >obviously be involved.
- >
- >Another problem concerns writing a procedure that will computer the
- >binary XOR's of two decimal numbers. I know how to get the binary
- >values for each of the decimal numbers (using MOD & DIV), but how do I
- >compare the two binary numbers when I'm finished with this? Is there
- >some kind of comparison command like with strings?
- >
- >Please advise.
- >
- >Thanks in advance!
- >
- Do universities teach anything these days or do they just depend on
- Usenet to help sort out the problems? This student has asked three
- fairly elementary questions within twenty minutes. Can I suggest that
- Ohio State University recommend some basic books on programming after
- all it helps to be able to walk before trying to run!
- --
- Neil D. Bentley
- Neil@grace35.demon.co.uk
-